
#ifndef UPDATE_LATEST_NEWS_H
#define UPDATE_LATEST_NEWS_H

#include <QImage>
#include <QWidget>
#include "ui_latest_news.h"

QT_BEGIN_NAMESPACE
namespace Ui { class latest_news; }
QT_END_NAMESPACE

class LatestNews : public QWidget
{
Q_OBJECT
public:
    explicit LatestNews(QWidget *parent = nullptr);

    ~LatestNews() override;

    void setPic(const QImage &image);
    void setPic(const QString &imagePath);

    void setDate(const QString &date);

    void setMask(const QString &str);

private:
    Ui::latest_news ui{};
};



#endif //UPDATE_LATEST_NEWS_H
